package com.ysx.oa.user.bean;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "kaoqin_user_t")
@Data
public class UserBean {

    // @Id作用：表明改字段为主键
    @Id
    // @KeySql(useGeneratedKeys = true) // 自增长
    private Integer id;

    private String phone;
    private String password;
    private String name;
    private String gender;
    private String number;

    // 只有和数据库字段名不一致时添加注解  （数据库字段不区分大小写）
    @Column(name = "E_MAIL")
    private String eMail;
    private Integer flag;

}
